package com.bestow.basic.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.bestow.common.annotation.Excel;
import com.bestow.common.core.domain.BaseEntity;

/**
 * 通用数据源定义对象 hls_db_data_source
 * 
 * @author liliu
 * @date 2022-09-14
 */
@TableName("hls_db_data_source")
public class HlsDbDataSource extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value = "data_source_id")
    private Long dataSourceId;

    /** 数据来源代码 */
    @Excel(name = "数据来源代码")
    private String dataSourceCode;

    /** 数据源用途 */
    @Excel(name = "数据源用途")
    private String usageType;

    /** 公司 */
    @Excel(name = "公司")
    private Long companyId;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 启用 */
    @Excel(name = "启用")
    private String enabledFlag;

    /** 拼接后sql语句 */
    @Excel(name = "拼接后sql语句")
    private String sqlContext;

    public void setDataSourceId(Long dataSourceId) 
    {
        this.dataSourceId = dataSourceId;
    }

    public Long getDataSourceId() 
    {
        return dataSourceId;
    }
    public void setDataSourceCode(String dataSourceCode) 
    {
        this.dataSourceCode = dataSourceCode;
    }

    public String getDataSourceCode() 
    {
        return dataSourceCode;
    }
    public void setUsageType(String usageType) 
    {
        this.usageType = usageType;
    }

    public String getUsageType() 
    {
        return usageType;
    }
    public void setCompanyId(Long companyId) 
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setEnabledFlag(String enabledFlag) 
    {
        this.enabledFlag = enabledFlag;
    }

    public String getEnabledFlag() 
    {
        return enabledFlag;
    }
    public void setSqlContext(String sqlContext) 
    {
        this.sqlContext = sqlContext;
    }

    public String getSqlContext() 
    {
        return sqlContext;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dataSourceId", getDataSourceId())
            .append("dataSourceCode", getDataSourceCode())
            .append("usageType", getUsageType())
            .append("companyId", getCompanyId())
            .append("description", getDescription())
            .append("enabledFlag", getEnabledFlag())
            .append("sqlContext", getSqlContext())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
